﻿namespace Cos.Module.Blog.NHibernate.Test
{
    using System;
    using System.Collections.Generic;

    using Cos.Core.NHibernate;

    using FluentNHibernate.Testing;

    using NUnit.Framework;

    [TestFixture]
    public class BlogDataModelFixture : BlogFixtureBase
    {
        [Test]
        public void CanMapBlogDataModel()
        {
            new PersistenceSpecification<BlogDataModel>(Session)
                .CheckProperty(x => x.CreationDate, new DateTime(2011, 01, 03))
                .CheckProperty(x => x.OwnerId, Guid.NewGuid())
                .CheckProperty(x => x.OwnerFirstName, "John")
                .CheckProperty(x => x.OwnerLastName, "Doe")
                //.CheckComponentList(x => x.Articles, new List<ArticleDataModel>())
                //.CheckComponentList(x => x.BlogCultures, new List<BlogCultureDataModel>())
                //.CheckComponentList(x => x.BlogCultures, new List<BlogCultureDataModel>())
                //.CheckComponentList(x => x.BlogCultures, new List<BlogCultureDataModel>())
                .VerifyTheMappings();
        }
    }
}
